button.setOnClickListener(object : View.OnClickListener { override fun onClick(v: View?) { //your implementation goes here } })